package com.leiyuee.JavaBase;

import lombok.Data;

//抽象类

public abstract class Employee {
    private String name;
    private String address;
    private int num;

    public Employee(String name, String address, int num) {
        System.out.println("满参构造");
        this.name = name;
        this.address = address;
        this.num = num;
    }

    @Override
    public String toString() {
        System.out.println("抽象类的方法");
        return "Employee{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", num=" + num +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public abstract String doSth();
}
